package br.com.maiscontrole.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import br.com.base.model.UsuarioBase;
import br.com.base.model.impl.EntidadeImpl;

/**
 * 
 * @author milton
 * 
 */
@Entity
@Table(name = "usuario")
public class Usuario extends EntidadeImpl implements UsuarioBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Basic
	@Column(length = 100)
	private String nome;

	@Enumerated(EnumType.STRING)
	private PerfilSysEnum perfilSys;

	@Basic
	@Column(length = 100)
	private String email;

	@Basic
	private String enable;

	@Basic
	@Column(length = 100)
	private String senha;

	@Basic
	@Column(length = 100)
	private String username;

	@OneToOne
	private UserConnection userConnection;

	public Usuario() {

	}

	@Override
	public String getEmail() {
		return this.email;
	}

	@Override
	public String getNome() {
		return this.nome;
	}

	@Override
	public String getSenha() {
		return this.senha;
	}

	@Override
	public String getUsername() {
		return this.username;
	}

	@Override
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public void setNome(String nome) {
		this.nome = nome;
	}

	@Override
	public void setSenha(String senha) {
		this.senha = senha;
	}

	@Override
	public void setUsername(String username) {
		this.username = username;
	}

}
